package com.itheima.dao.impl;

import com.itheima.dao.UserDao;

/**
 * @program: Spring_day01_01_IOC入门程序
 * @description:
 * @author: xuejingjing
 * @create: 2021-07-24 16:47
 **/
public class UserDaoImpl  implements UserDao {

    private String userName;
    private String pwd;
//这个问题
    //为啥这里必须去掉呀
    /*public UserDaoImpl(String userName, String pwd) {
        this.userName = userName;
        this.pwd = pwd;
    }*/

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "UserDaoImpl{" +
                "userName='" + userName + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }

    public void save() {
        System.out.println("UserDaoIMPL被调用了...");
        System.out.println("userName"+userName);
        System.out.println("password"+pwd);

    }
}
